/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package submarines.notices;

import submarines.Player;
/**
 *
 * @author elad + shiran
 * Notification sent when a player was fired upon but it was a miss. also holds the relevant coordinates
 */
public class NoticePlayerGotLucky extends Notice {
    
    protected int row;
    protected int col;
            
    public NoticePlayerGotLucky(Player sub, NoticeType type, int row, int col)
    {
        super(sub, type);
        this.row = row;
        this.col = col;
        this.description = "Player " + sub.getName() + " was attacked and got lucky";
    }

    public int getRow()
    {
        return row;
    }
    
    public int getCol()
    {
        return col;
    }
    
}
